﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUg.Master" Inherits="System.Web.Mvc.ViewPage<User>" %>
<%@ Import Namespace="SacNetUG.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Mailing List
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p> Keep informed of Sac.Net events.
    </p>
    <p>
        <%= Html.Encode(ViewData["Message"]) %></p>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <table>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.EmailAddress)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.EmailAddress)%>
                    <%= Html.ValidationMessageFor(model => model.EmailAddress)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.FirstName)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.FirstName)%>
                    <%= Html.ValidationMessageFor(model => model.FirstName)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.LastName)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.LastName)%>
                    <%= Html.ValidationMessageFor(model => model.LastName)%>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
